import i18next from "i18next"

export const v0Template = {
	node_id: "MAGIC-FLOW-NODE-674c2a7157e4e7-30880767",
	debug: false,
	name: "ExcelLoader",
	description: "",
	node_type: 51,
	meta: [],
	params: {
		files: {
			id: "component-674c2a7157e6b",
			version: "1",
			type: "form",
			structure: {
				type: "array",
				key: "root",
				sort: 0,
				title: i18next.t("common.fileList", { ns: "flow" }),
				description: "",
				required: null,
				value: null,
				encryption: false,
				encryption_value: null,
				items: {
					type: "object",
					key: "file",
					sort: 0,
					title: i18next.t("common.file", { ns: "flow" }),
					description: "",
					required: ["file_name", "file_url"],
					value: null,
					encryption: false,
					encryption_value: null,
					items: null,
					properties: {
						file_name: {
							type: "string",
							key: "file_name",
							sort: 0,
							title: i18next.t("common.fileName", { ns: "flow" }),
							description: "",
							required: null,
							value: null,
							encryption: false,
							encryption_value: null,
							items: null,
							properties: null,
						},
						file_url: {
							type: "string",
							key: "file_url",
							sort: 1,
							title: i18next.t("common.fileUrl", { ns: "flow" }),
							description: "",
							required: null,
							value: null,
							encryption: false,
							encryption_value: null,
							items: null,
							properties: null,
						},
					},
				},
				properties: null,
			},
		},
	},
	next_nodes: [],
	input: null,
	output: {
		widget: null,
		form: {
			id: "component-674c2a7157f01",
			version: "1",
			type: "form",
			structure: {
				type: "object",
				key: "root",
				sort: 0,
				title: "root节点",
				description: "",
				required: ["files_spreadsheet"],
				value: null,
				encryption: false,
				encryption_value: null,
				items: null,
				properties: {
					files_spreadsheet: {
						type: "array",
						key: "files_spreadsheet",
						sort: 0,
						title: "表格文件",
						description: "",
						required: null,
						value: null,
						encryption: false,
						encryption_value: null,
						items: {
							type: "object",
							key: "files_spreadsheet",
							sort: 0,
							title: "文件",
							description: "",
							required: ["file_name", "file_url", "file_extension", "sheet"],
							value: null,
							encryption: false,
							encryption_value: null,
							items: null,
							properties: {
								file_name: {
									type: "string",
									key: "file_name",
									sort: 0,
									title: "文件名称",
									description: "",
									required: null,
									value: null,
									encryption: false,
									encryption_value: null,
									items: null,
									properties: null,
								},
								file_url: {
									type: "string",
									key: "file_url",
									sort: 1,
									title: "文件地址",
									description: "",
									required: null,
									value: null,
									encryption: false,
									encryption_value: null,
									items: null,
									properties: null,
								},
								file_extension: {
									type: "string",
									key: "file_extension",
									sort: 2,
									title: "文件扩展名",
									description: "",
									required: null,
									value: null,
									encryption: false,
									encryption_value: null,
									items: null,
									properties: null,
								},
								sheets: {
									type: "array",
									key: "sheets",
									sort: 3,
									title: "工作表",
									description: "",
									required: null,
									value: null,
									encryption: false,
									encryption_value: null,
									items: {
										type: "object",
										key: "",
										sort: 0,
										title: "工作表",
										description: "",
										required: [],
										value: null,
										encryption: false,
										encryption_value: null,
										items: null,
										properties: {
											sheet_name: {
												type: "string",
												key: "sheet_name",
												sort: 0,
												title: "工作表名称",
												description: "",
												required: null,
												value: null,
												encryption: false,
												encryption_value: null,
												items: null,
												properties: null,
											},
											rows: {
												type: "array",
												key: "rows",
												sort: 1,
												title: "行",
												description: "",
												required: null,
												value: null,
												encryption: false,
												encryption_value: null,
												items: {
													type: "object",
													key: "",
													sort: 0,
													title: "行",
													description: "",
													required: [],
													value: null,
													encryption: false,
													encryption_value: null,
													items: null,
													properties: {
														cells: {
															type: "array",
															key: "cells",
															sort: 0,
															title: "单元格",
															description: "",
															required: null,
															value: null,
															encryption: false,
															encryption_value: null,
															items: {
																type: "object",
																key: "",
																sort: 0,
																title: "列",
																description: "",
																required: [],
																value: null,
																encryption: false,
																encryption_value: null,
																items: null,
																properties: {
																	value: {
																		type: "string",
																		key: "value",
																		sort: 0,
																		title: "值",
																		description: "",
																		required: null,
																		value: null,
																		encryption: false,
																		encryption_value: null,
																		items: null,
																		properties: null,
																	},
																	column_index: {
																		type: "string",
																		key: "column_index",
																		sort: 1,
																		title: "列索引",
																		description: "",
																		required: null,
																		value: null,
																		encryption: false,
																		encryption_value: null,
																		items: null,
																		properties: null,
																	},
																},
															},
															properties: null,
														},
														row_index: {
															type: "string",
															key: "row_index",
															sort: 1,
															title: "行索引",
															description: "",
															required: null,
															value: null,
															encryption: false,
															encryption_value: null,
															items: null,
															properties: null,
														},
													},
												},
												properties: null,
											},
										},
									},
									properties: null,
								},
							},
						},
						properties: null,
					},
				},
			},
		},
	},
	system_output: null,
}
